package com.powernode.work.dao;

import com.powernode.work.bean.TranHistoryBean;

import java.util.List;
import java.util.Map;

public interface TranHistoryMapper {
    int deleteByPrimaryKey(String id);

    int insert(TranHistoryBean record);

    int insertSelective(TranHistoryBean record);

    TranHistoryBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TranHistoryBean record);

    int updateByPrimaryKey(TranHistoryBean record);

    List<TranHistoryBean> selectByTranId(String tranid);

    /**
     * 获取历史记录中  最高的阶段
     * @param tranid
     * @return
     */
    Map selectMaxStageByTranId(String tranid);
}